Page({
  data: {
    visitorList: []
  },
  onLoad() {
    this.getList()
  },
  async getList() {
    const { rows } = await wx.http.get('/visitor')
    this.setData({ visitorList: rows })
  },
  goPassport(e) {
    wx.navigateTo({
      url: `/visitor_pkg/pages/passport/index?id=${e.mark.id}`,
    })
  },
})
